package com.jcn.seckill.exception;

import com.jcn.seckill.result.CodeMsg;

//全局业务异常
public class GlobalException extends RuntimeException{

	private static final long serialVersionUID = 1L;
	//获取参数
	private CodeMsg cm;
	
	public GlobalException(CodeMsg cm) {
		super(cm.toString());
		this.cm = cm;
	}
	//只需要get方法
	public CodeMsg getCm() {
		return cm;
	}

}
